import { reqGetArtCateList } from '@/api/article'
const state = {
  cateList: []
}
const mutations = {
  setCateList (state, newCateList) {
    state.cateList = newCateList
  }
}
const actions = {
  async getCateList (context) {
    const { data } = await reqGetArtCateList()
    console.log(data, 666)
    if (data.code === 0) {
      context.commit('setCateList', data.data)
    }
  }
}
const getters = {}
export default {
  state,
  mutations,
  actions,
  getters,
  namespaced: true
}
